*/* $Header: iomap.hs,v 2.2 01/10/02 10:30:26 przybyls Exp $ */

        nolist

***********************************************************************/
* INCLUDE FILE NAME: iomap.hs                                         */
* ==================                                                  */
*                                                                     */
* COMMENT: This has the bit definitions for i/o hardware used by      */
*          assembly language routines for Moe.                        */
*                                                                     */
***********************************************************************/


*****************************/
*   SYMBOLIC CONSTANTS      */
*****************************/

*  Keyboard constants, !!MUST BE KEPT IN AGREEMENT WITH keyboard.h !!

START_KEY       equ             5               ;Keycode for Start Run key
START_LOCK_KEY  equ           126               ;Keycode for Start key locked
START_ROW       equ             0               ;Row # of Start Run key
START_COLUMN    equ             5               ;Column (bit#) of Start Run
UP_ARROW_KEY    equ             30              ;Keycode of scroll up key
UP_COLUMN       equ             6               ;Column (bit#) of scroll up
UP_ROW          equ             4               ;Row # of scroll up key
DOWN_ARROW_KEY  equ             36              ;Keycode of scroll down key
DOWN_COLUMN     equ             6               ;Column (bit#) of scroll down
DOWN_ROW        equ             5               ;Row # of scroll down key
CLEAR_COLUMN    equ             5               ;Column (bit#) of clear key
CLEAR_ROW       equ             4               ;Row # of clear key
ROW_MASK        equ             $F0             ;Mask for clearing row#
KEY_Q_SIZE      equ             50              ;# elements in key queue

STOP_COLUMN     equ             2               ;Column (bit#) of Stop Run  -- Sleazy-ICE, pneudsp.S
STOP_ROW        equ             0               ;Row # of Stop Run key      -- Sleazy-ICE, pneudsp.S


*  Masks for _RESET_LATCH1

RESET1_ALL      equ             $10             ;Value for reset everything

*  Masks for loading the DSPs and to
*  reset and unreset datacomm hardware, use with _RESET_LATCH1 and _Reset1_Image

SIG_DSP_RMASK   equ             $F7             ;Mask to reset the Signal DSP
SIG_DSP_UMASK   equ             $08             ;Mask to unreset the Signal DSP

PNEU_DSP_UMASK  equ             $02             ;Mask to unreset the Pneumatic DSP
PNEU_DSP_RMASK  equ             $fd             ;Mask to reset the Pneumatic DSP

DUART_RMASK     equ             $fb             ;AND mask to reset DUART Chip
DUART_UMASK     equ             $04             ;OR mask to unreset DUART Chip

*  Mux'ed Adc Channel Addresses:  Warning this must agree with iomap.h

ADC_OFFSET_ADDR  equ            $16


* On Masks for power relay and valves control register: ZONES_OUT1

PWR_RELAYS_OFF  equ             $fc             ;Mask off for oven contactor
                                                ;and small zone relay


* Off Masks for zone drive register: ZONES_OUT2

ALL_ZONES_OFF   equ             $00             ;Mask to turn off all zones

* Off Masks for zone drive register: ZONES_OUT4

nZONES_FAULT_CLEAR equ          $bf             ;Mask to turn off all zones via final register in chain

* Off Masks for the leds

ALL_LEDS1_OFF   equ             $0f             ;Mask to turn off all LED1
ALL_LEDS2_OFF   equ             $00             ;Mask to turn off all LED2

*****************************/
*   MACROS                  */
*****************************/

  list
